
#include "stdint.h"
#include "stddef.h"

#include "stm32f10x.h"                  // Device header
#include "freertos.h"
#include "task.h"
#include "bsp.h"
#include "tasks_process.h"
static 	TaskHandle_t    LED_task_handle;
static	TaskHandle_t    PWM_task_handle;
static void BSP_Init(void)
{
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_4);
	Usart1_Init(115200);
	bsp_gpio_init();
	bsp_timer_PWM();
	 
}
int main(void)
{
	BSP_Init();

	xTaskCreate(LED_task, "LED_Task", 1024, NULL, 1, LED_task_handle);
	xTaskCreate(PWM_task, "PWM_Task", 64, NULL, 2, PWM_task_handle);
	vTaskStartScheduler();
	while(1);
	
//	return 1;
}
